package net.zisen.cloud.core.security.token;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author tim/278002989@qq.com
 * @Classname JwtToken
 * @Description TODO
 * @Date 2019-03-31 23:37
 */
public class JwtToken implements AuthenticationToken {
    /**
     * 密钥
     */
    private String token;
    private String host;

    public JwtToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }


}
